<template>
  <div>
    <h2>父组件isShow:{{ isShow }}</h2>
    <el-button @click="isShow = !isShow">父组件按钮</el-button>
    <ChildTest :isShow="isShow" @changeIshow="changeIshow"></ChildTest>
  </div>
</template>

<script setup lang="ts">
import ChildTest from './ChildTest.vue'
const isShow = ref(false)

const changeIshow = (val: boolean) => {
  isShow.value = val
}
</script>

<style lang="scss" scoped></style>
